
using System;
using System.Data;
using System.Runtime.Serialization;

namespace MinCultura.Sipa.DataAccess.AgentesArtes
 {
     /// <summary>
     /// A custom serializable dataset containing 
     /// </summary>

     [Serializable()]
     [System.ComponentModel.DesignerCategoryAttribute("code")]
      

	/// <summary>Class for handling datasets</summary>  
	public class AreasArtisticasTemasData : DataSet
	{
    ///
    /// Constants for table and fields mapping
    ///
		public const string ART_AREAS_ARTISTICAS_TEMAS_TABLE = "ART_AREAS_ARTISTICAS_TEMAS";
    
    public const string ARD_ID_FIELD = "ARD_ID";
    public const string AAT_ID_FIELD = "AAT_ID";
    public const string AAT_TEMA_FIELD = "AAT_TEMA";
    
    
    protected AreasArtisticasTemasData(SerializationInfo info, StreamingContext context)
    {
    //
    }

    public AreasArtisticasTemasData()
    {
       BuildDataTables();
    }
     
    /// <summary>
    /// Creates the following datatables: Localidades
    /// </summary>
    private void BuildDataTables()
		{
        DataTable table;
        DataColumnCollection columns;
        table = new DataTable(ART_AREAS_ARTISTICAS_TEMAS_TABLE);
        columns = table.Columns;
        
        columns.Add(ARD_ID_FIELD, typeof(System.Decimal));
        columns.Add(AAT_ID_FIELD, typeof(System.Decimal));
        columns.Add(AAT_TEMA_FIELD, typeof(System.String));
				columns[AAT_TEMA_FIELD].Caption = "Nombre";
        this.Tables.Add(table);
    }
        
    /// <summary>
	/// Add a new row to the table
	/// </summary>
	/// <param name="row">Dataset row
	public void addAreasArtisticasTemas(DataRow row)
	{
		this.Tables[ART_AREAS_ARTISTICAS_TEMAS_TABLE].Rows.Add(row);
	}    
        
 }    
  
}  
